<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>UI插件 </title>
		<link rel="stylesheet" type="text/css" href='../jquery-ui.min.css'/>
	</head>

	<body>
		<span>请输入:</span>
		<input id="tags">
		<script src="../jquery-1.12.4.min.js">
		</script>
		<script src="../jquery-ui.min.js">
		</script>
		<script type="text/javascript">
			//定义数组
			var arr=['java','c','javascript','android','mysql','html&css'];
			//给input元素使用自动完成插件功能
			$('#tags').autocomplete(
				{
					source:arr
				}
			);
		</script>
	</body>

</html>